use "KimPelc_vaccine_main.dta", clear

* Table 1. The Effects of Ideological Distance on COVID-19 Vaccination Decision

eststo clear

eststo: regress vaccinated st_ideo7_dist2021 ideo7 st_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian , cluster(inputstate)
eststo: areg  vaccinated st_ideo7_dist2021 ideo7 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian , cluster(inputstate) absorb(inputstate)

eststo: regress vaccinated cz_ideo7_dist2021 ideo7 cz_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian , cluster(czone)
eststo: areg vaccinated cz_ideo7_dist2021 ideo7 female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian, cluster(czone) absorb(czone)

eststo: xtmelogit vaccinated st_ideo7_dist2021 ideo7 st_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian || inputstate: 
eststo: xtmelogit vaccinated cz_ideo7_dist2021 ideo7 cz_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian || czone: 

esttab using "Table1.tex", label keep(st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 cz_imm_share) order(st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 cz_imm_share ) margin nonotes se(3) b(3) replace star(+ 0.10 * 0.05 ** 0.01) compress nogaps nodepvars 							

* Figure 4: The Effects of Ideological Distance on COVID-19 Vaccination Decision by Levels of Affective Polarization

xtmelogit vaccinated c.st_ideo7_dist2021##c.affective_polarization_12_16_20  ideo7 cz_imm_share female age covid_diagnosed hs college  city suburb town white black race_hispanic asian || inputstate: 
*xtmelogit vaccinated c.st_ideo7_dist2021##c.affective_polarization_12_16_20  ideo7 cz_imm_share female age covid_diagnosed hs college  city suburb town white black race_hispanic asian || inputstate: 
margins, at (st_ideo7_dist2021 = (0(1)5) affective_polarization_12_16_20 = (0.37 0.55)) predict(mu fixed) 
marginsplot, scheme(sj) title("") ytitle("Predicted Probability") graphregion(color(white)) bgcolor(white) ///
	legend(order(3 "Low Affective Polarization" 4 "High Affective Polarization"))
graph export "Figure4a.pdf", as(pdf) replace

xtmelogit vaccinated c.cz_ideo7_dist2021##c.affective_polarization_12_16_20 ideo7 cz_imm_share female age covid_diagnosed hs college  city suburb town white black race_hispanic asian || czone:
margins, at (cz_ideo7_dist2021 = (0(1)5) affective_polarization_12_16_20 = (0.37 0.55)) predict(mu fixed)
marginsplot, scheme(sj) title("") ytitle("Predicted Probability") graphregion(color(white)) bgcolor(white) ///
	legend(order(3 "Low Affective Polarization" 4 "High Affective Polarization"))
graph export "Figure4b.pdf", as(pdf) replace


* Table A1: The Effects of Ideological Distance on COVID-19 Vaccination Decision

esttab using "TableA1.tex", label keep(st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian covid_diagnosed) order(st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian covid_diagnosed) margin nonotes se(3) b(3) replace star(+ 0.10 * 0.05 ** 0.01) compress nogaps nodepvars 

* Table A2: Results: Excluding Income Variables

eststo clear

eststo: regress vaccinated st_ideo7_dist2021 ideo7 st_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian , cluster(inputstate)
eststo: areg  vaccinated st_ideo7_dist2021 ideo7 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian , cluster(inputstate) absorb(inputstate)

eststo: regress vaccinated cz_ideo7_dist2021 ideo7 cz_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian , cluster(czone)
eststo: areg vaccinated cz_ideo7_dist2021 ideo7 female age covid_diagnosed hs college city suburb town white black race_hispanic asian, cluster(czone) absorb(czone)

eststo: xtmelogit vaccinated st_ideo7_dist2021 ideo7 st_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian || inputstate: 
eststo: xtmelogit vaccinated cz_ideo7_dist2021 ideo7 cz_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian || czone: 

esttab using "TableA2.tex", label keep(st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian covid_diagnosed) order(st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian covid_diagnosed) margin nonotes se(3) b(3) replace star(+ 0.10 * 0.05 ** 0.01) compress nogaps nodepvars 

* Table A3: Results: Subset of Data with Individuals Identifying as Liberals

eststo clear

eststo: regress vaccinated st_ideo7_dist2021 ideo7 st_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 1 | ideo5 == 2, cluster(inputstate)
eststo: areg  vaccinated st_ideo7_dist2021 ideo7 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 1 | ideo5 == 2, cluster(inputstate) absorb(inputstate)

eststo: regress vaccinated cz_ideo7_dist2021 ideo7 cz_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 1 | ideo5 == 2, cluster(czone)
eststo: areg vaccinated cz_ideo7_dist2021 ideo7 female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 1 | ideo5 == 2, cluster(czone) absorb(czone)
 
eststo: xtmelogit vaccinated st_ideo7_dist2021 ideo7 st_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian || inputstate: if ideo5 == 1 | ideo5 == 2
eststo: xtmelogit vaccinated cz_ideo7_dist2021 ideo7 cz_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian || czone: if ideo5 == 1 | ideo5 == 2

esttab using "TableA3.tex", label keep(st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian covid_diagnosed) order(st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian covid_diagnosed) margin nonotes se(3) b(3) replace star(+ 0.10 * 0.05 ** 0.01) compress nogaps nodepvars 

* Table A4: Results: Subset of Data with Individuals Identifying as Conservatives

eststo clear

eststo: regress vaccinated st_ideo7_dist2021 ideo7 st_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 4 | ideo5 == 5, cluster(inputstate)
eststo: areg  vaccinated st_ideo7_dist2021 ideo7 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 4 | ideo5 == 5, cluster(inputstate) absorb(inputstate)

eststo: regress vaccinated cz_ideo7_dist2021 ideo7 cz_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 4 | ideo5 == 5, cluster(czone)
eststo: areg vaccinated cz_ideo7_dist2021 ideo7 female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 4 | ideo5 == 5, cluster(czone) absorb(czone)

eststo: xtmelogit vaccinated st_ideo7_dist2021 ideo7 st_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian || inputstate: if ideo5 == 4 | ideo5 == 5
eststo: xtmelogit vaccinated cz_ideo7_dist2021 ideo7 cz_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian || czone: if ideo5 == 4 | ideo5 == 5

esttab using "TableA4.tex", label keep(st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian covid_diagnosed) order(st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 cz_imm_share female age covid_diagnosed hs college city suburb town white black race_hispanic asian covid_diagnosed) margin nonotes se(3) b(3) replace star(+ 0.10 * 0.05 ** 0.01) compress nogaps nodepvars 

* Table A5: Results: US-Born Respondents Only

eststo clear

eststo: regress vaccinated st_ideo7_dist2021 ideo7 st_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian if immigrant == 0, cluster(inputstate)
eststo: areg  vaccinated st_ideo7_dist2021 ideo7 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian if immigrant == 0, cluster(inputstate) absorb(inputstate)

eststo: regress vaccinated cz_ideo7_dist2021 ideo7 cz_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian if immigrant == 0, cluster(czone)
eststo: areg vaccinated cz_ideo7_dist2021 ideo7 female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian if immigrant == 0, cluster(czone) absorb(czone)

eststo: xtmelogit vaccinated st_ideo7_dist2021 ideo7 st_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian || inputstate: if immigrant == 0
eststo: xtmelogit vaccinated cz_ideo7_dist2021 ideo7 cz_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian || czone: if immigrant == 0

esttab using "TableA5.tex", label keep(st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian covid_diagnosed) order(st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian covid_diagnosed) margin nonotes se(3) b(3) replace star(+ 0.10 * 0.05 ** 0.01) compress nogaps nodepvars 

* Table A6: Results: Comparing White versus Non-White Immigrants

eststo clear

eststo: regress vaccinated st_ideo7_dist2021 ideo7 st_ideo7_mean2021 cz_imm_share_white female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 4 | ideo5 == 5, cluster(inputstate)
eststo: areg  vaccinated st_ideo7_dist2021 ideo7 cz_imm_share_white female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 4 | ideo5 == 5, cluster(inputstate) absorb(inputstate)

eststo: regress vaccinated cz_ideo7_dist2021 ideo7 cz_ideo7_mean2021 cz_imm_share_white female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 4 | ideo5 == 5, cluster(czone)
eststo: areg vaccinated cz_ideo7_dist2021 ideo7 female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 4 | ideo5 == 5, cluster(czone) absorb(czone)

eststo: xtmelogit vaccinated st_ideo7_dist2021 ideo7 st_ideo7_mean2021 cz_imm_share_white female age covid_diagnosed hs college city suburb town white black race_hispanic asian || inputstate: if ideo5 == 4 | ideo5 == 5
eststo: xtmelogit vaccinated cz_ideo7_dist2021 ideo7 cz_ideo7_mean2021 cz_imm_share_white female age covid_diagnosed hs college city suburb town white black race_hispanic asian || czone: if ideo5 == 4 | ideo5 == 5

esttab using "TableA6.tex", label keep(st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 cz_imm_share_white female age covid_diagnosed hs college city suburb town white black race_hispanic asian covid_diagnosed) order(st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 cz_imm_share_white female age covid_diagnosed hs college city suburb town white black race_hispanic asian covid_diagnosed) margin nonotes se(3) b(3) replace star(+ 0.10 * 0.05 ** 0.01) compress nogaps nodepvars 

* Table A7: Results: Comparing White versus Non-White Immigrants (Continued)

eststo clear

eststo: regress vaccinated st_ideo7_dist2021 ideo7 st_ideo7_mean2021 cz_imm_share_nonwhite female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 4 | ideo5 == 5, cluster(inputstate)
eststo: areg  vaccinated st_ideo7_dist2021 ideo7 cz_imm_share_nonwhite female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 4 | ideo5 == 5, cluster(inputstate) absorb(inputstate)

eststo: regress vaccinated cz_ideo7_dist2021 ideo7 cz_ideo7_mean2021 cz_imm_share_nonwhite female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 4 | ideo5 == 5, cluster(czone)
eststo: areg vaccinated cz_ideo7_dist2021 ideo7 female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 4 | ideo5 == 5, cluster(czone) absorb(czone)

eststo: xtmelogit vaccinated st_ideo7_dist2021 ideo7 st_ideo7_mean2021 cz_imm_share_nonwhite female age covid_diagnosed hs college city suburb town white black race_hispanic asian || inputstate: if ideo5 == 4 | ideo5 == 5
eststo: xtmelogit vaccinated cz_ideo7_dist2021 ideo7 cz_ideo7_mean2021 cz_imm_share_nonwhite female age covid_diagnosed hs college city suburb town white black race_hispanic asian || czone: if ideo5 == 4 | ideo5 == 5

esttab using "TableA7.tex", label keep(st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 cz_imm_share_nonwhite female age covid_diagnosed hs college city suburb town white black race_hispanic asian covid_diagnosed) order(st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 cz_imm_share_nonwhite female age covid_diagnosed hs college city suburb town white black race_hispanic asian covid_diagnosed) margin nonotes se(3) b(3) replace star(+ 0.10 * 0.05 ** 0.01) compress nogaps nodepvars 

* Table A8: Results: Non-White Share as a Measure of Ethnic Diversity

eststo clear

eststo: regress vaccinated st_ideo7_dist2021 ideo7 st_ideo7_mean2021 non_white female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 4 | ideo5 == 5, cluster(inputstate)
eststo: areg  vaccinated st_ideo7_dist2021 ideo7 non_white female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 4 | ideo5 == 5, cluster(inputstate) absorb(inputstate)

eststo: regress vaccinated cz_ideo7_dist2021 ideo7 cz_ideo7_mean2021 non_white female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 4 | ideo5 == 5, cluster(czone)
eststo: areg vaccinated cz_ideo7_dist2021 ideo7 non_white female age covid_diagnosed hs college city suburb town white black race_hispanic asian if ideo5 == 4 | ideo5 == 5, cluster(czone) absorb(czone)

eststo: xtmelogit vaccinated st_ideo7_dist2021 ideo7 st_ideo7_mean2021 non_white female age covid_diagnosed hs college city suburb town white black race_hispanic asian || inputstate: if ideo5 == 4 | ideo5 == 5
eststo: xtmelogit vaccinated cz_ideo7_dist2021 ideo7 cz_ideo7_mean2021 non_white female age covid_diagnosed hs college city suburb town white black race_hispanic asian || czone: if ideo5 == 4 | ideo5 == 5

esttab using "TableA8.tex", label keep(st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 non_white female age covid_diagnosed hs college city suburb town white black race_hispanic asian covid_diagnosed) order(st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 non_white female age covid_diagnosed hs college city suburb town white black race_hispanic asian covid_diagnosed) margin nonotes se(3) b(3) replace star(+ 0.10 * 0.05 ** 0.01) compress nogaps nodepvars 

* Table A9: Results: Interactive Effect of Ideological Distance and Affective Polarization

eststo clear
eststo: xtmelogit vaccinated st_ideo7_dist2021 affective_polarization_12_16_20 st_dist_affective_12_16_20 ideo7 cz_imm_share female age covid_diagnosed hs college  city suburb town white black race_hispanic asian  || inputstate: 
eststo: xtmelogit vaccinated st_ideo7_dist2021 affective_polarization_12_16_20 st_dist_affective_12_16_20 ideo7 cz_imm_share female age covid_diagnosed hs college  city suburb town white black race_hispanic asian income_100k income_50k || inputstate: 
eststo: xtmelogit vaccinated st_ideo7_dist2021 affective_polarization_12_16_20 st_dist_affective_12_16_20 st_ideo7_mean2021  ideo7 cz_imm_share female age covid_diagnosed hs college  city suburb town white black race_hispanic asian income_100k income_50k || inputstate: 

eststo: xtmelogit vaccinated cz_ideo7_dist2021 affective_polarization_12_16_20 cz_dist_affective_12_16_20 ideo7 cz_imm_share female age covid_diagnosed hs college  city suburb town white black race_hispanic asian || czone:
eststo: xtmelogit vaccinated cz_ideo7_dist2021 affective_polarization_12_16_20 cz_dist_affective_12_16_20 ideo7 cz_imm_share female age covid_diagnosed hs college  city suburb town white black race_hispanic asian income_100k income_50k || czone:
eststo: xtmelogit vaccinated cz_ideo7_dist2021 affective_polarization_12_16_20 cz_dist_affective_12_16_20 cz_ideo7_mean2021 ideo7 cz_imm_share female age covid_diagnosed hs college  city suburb town white black race_hispanic asian income_100k income_50k || czone:

esttab using "TableA9.tex", label keep(st_ideo7_dist2021 cz_ideo7_dist2021 affective_polarization_12_16_20 st_dist_affective_12_16_20 cz_dist_affective_12_16_20 cz_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_mean2021 ideo7 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian covid_diagnosed) order(st_ideo7_dist2021 cz_ideo7_dist2021 affective_polarization_12_16_20 st_dist_affective_12_16_20 cz_dist_affective_12_16_20 cz_ideo7_dist2021 st_ideo7_mean2021  cz_ideo7_mean2021  ideo7 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian covid_diagnosed) margin nonotes se(3) b(3) replace star(+ 0.10 * 0.05 ** 0.01) compress nogaps nodepvars 

* Table A10: Results: Interactive Effect of City and Ideological Distance

eststo clear 

eststo: regress vaccinated st_ideo7_dist2021 city city_st_ideo7_dist2021 ideo7 st_ideo7_mean2021 cz_imm_share_nonwhite female age covid_diagnosed hs college white black race_hispanic asian , cluster(inputstate)
eststo: areg  vaccinated st_ideo7_dist2021 city city_st_ideo7_dist2021 ideo7 cz_imm_share_nonwhite female age covid_diagnosed hs college  white black race_hispanic asian , cluster(inputstate) absorb(inputstate)

eststo: regress vaccinated cz_ideo7_dist2021 city city_cz_ideo7_dist2021 ideo7 cz_ideo7_mean2021 cz_imm_share_nonwhite female age covid_diagnosed hs college  white black race_hispanic asian, cluster(czone)
eststo: areg vaccinated cz_ideo7_dist2021 city city_cz_ideo7_dist2021 ideo7 female age covid_diagnosed hs college  white black race_hispanic asian , cluster(czone) absorb(czone)

eststo: xtmelogit vaccinated st_ideo7_dist2021 city city_st_ideo7_dist2021 ideo7 st_ideo7_mean2021 cz_imm_share_nonwhite female age covid_diagnosed hs college white black race_hispanic asian || inputstate: 
eststo: xtmelogit vaccinated cz_ideo7_dist2021 city city_cz_ideo7_dist2021 ideo7 cz_ideo7_mean2021 cz_imm_share_nonwhite female age covid_diagnosed hs college white black race_hispanic asian || czone: 

esttab using "TableA10.tex", label keep(st_ideo7_dist2021 city city_st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 city_cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 cz_imm_share_nonwhite female age covid_diagnosed hs college white black race_hispanic asian covid_diagnosed) order(st_ideo7_dist2021 city_st_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 city_cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 city cz_imm_share_nonwhite female age covid_diagnosed hs college white black race_hispanic asian covid_diagnosed) margin nonotes se(3) b(3) replace star(+ 0.10 * 0.05 ** 0.01) compress nogaps nodepvars 

* Table A11: Results: Interactive Effect of Political Interest and Ideological Distance

eststo clear

eststo: regress vaccinated st_ideo7_dist2021 high_pol_interest pol_interest_st_ideo7_dist2021 ideo7 st_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian , cluster(inputstate)
eststo: areg  vaccinated st_ideo7_dist2021 high_pol_interest pol_interest_st_ideo7_dist2021  ideo7 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian , cluster(inputstate) absorb(inputstate)

eststo: regress vaccinated cz_ideo7_dist2021 high_pol_interest pol_interest_cz_ideo7_dist2021  ideo7 cz_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian , cluster(czone)
eststo: areg vaccinated cz_ideo7_dist2021 high_pol_interest pol_interest_cz_ideo7_dist2021 ideo7 female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian, cluster(czone) absorb(czone)

eststo: xtmelogit vaccinated st_ideo7_dist2021 high_pol_interest pol_interest_st_ideo7_dist2021 ideo7 st_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian || inputstate: 
eststo: xtmelogit vaccinated cz_ideo7_dist2021 high_pol_interest pol_interest_cz_ideo7_dist2021 ideo7 cz_ideo7_mean2021 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian || czone: 

esttab using "TableA11.tex", label keep(st_ideo7_dist2021 high_pol_interest pol_interest_st_ideo7_dist2021 pol_interest_cz_ideo7_dist2021 st_ideo7_mean2021 cz_ideo7_dist2021 cz_ideo7_mean2021 ideo7 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian covid_diagnosed) order(st_ideo7_dist2021 high_pol_interest pol_interest_st_ideo7_dist2021 cz_ideo7_dist2021 pol_interest_cz_ideo7_dist2021 st_ideo7_mean2021  cz_ideo7_mean2021 ideo7 cz_imm_share female age covid_diagnosed hs college income_50k income_100k city suburb town white black race_hispanic asian covid_diagnosed) margin nonotes se(3) b(3) replace star(+ 0.10 * 0.05 ** 0.01) compress nogaps nodepvars 


